// vite.config.ts
import { fileURLToPath, URL } from "node:url";
import { defineConfig, loadEnv } from "file:///C:/Users/zkxtyanfa/Desktop/%E5%85%AC%E5%8F%B8%E9%A1%B9%E7%9B%AE/%E7%8F%A0%E7%A7%91%E9%99%A2%E6%99%BA%E6%85%A7%E6%B0%B4%E5%88%A9%E9%A1%B9%E7%9B%AE/baise-visualization/node_modules/vite/dist/node/index.js";
import vue from "file:///C:/Users/zkxtyanfa/Desktop/%E5%85%AC%E5%8F%B8%E9%A1%B9%E7%9B%AE/%E7%8F%A0%E7%A7%91%E9%99%A2%E6%99%BA%E6%85%A7%E6%B0%B4%E5%88%A9%E9%A1%B9%E7%9B%AE/baise-visualization/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import vueJsx from "file:///C:/Users/zkxtyanfa/Desktop/%E5%85%AC%E5%8F%B8%E9%A1%B9%E7%9B%AE/%E7%8F%A0%E7%A7%91%E9%99%A2%E6%99%BA%E6%85%A7%E6%B0%B4%E5%88%A9%E9%A1%B9%E7%9B%AE/baise-visualization/node_modules/@vitejs/plugin-vue-jsx/dist/index.mjs";
import AutoImport from "file:///C:/Users/zkxtyanfa/Desktop/%E5%85%AC%E5%8F%B8%E9%A1%B9%E7%9B%AE/%E7%8F%A0%E7%A7%91%E9%99%A2%E6%99%BA%E6%85%A7%E6%B0%B4%E5%88%A9%E9%A1%B9%E7%9B%AE/baise-visualization/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///C:/Users/zkxtyanfa/Desktop/%E5%85%AC%E5%8F%B8%E9%A1%B9%E7%9B%AE/%E7%8F%A0%E7%A7%91%E9%99%A2%E6%99%BA%E6%85%A7%E6%B0%B4%E5%88%A9%E9%A1%B9%E7%9B%AE/baise-visualization/node_modules/unplugin-vue-components/dist/vite.js";
import { ElementPlusResolver } from "file:///C:/Users/zkxtyanfa/Desktop/%E5%85%AC%E5%8F%B8%E9%A1%B9%E7%9B%AE/%E7%8F%A0%E7%A7%91%E9%99%A2%E6%99%BA%E6%85%A7%E6%B0%B4%E5%88%A9%E9%A1%B9%E7%9B%AE/baise-visualization/node_modules/unplugin-vue-components/dist/resolvers.js";
import Icons from "file:///C:/Users/zkxtyanfa/Desktop/%E5%85%AC%E5%8F%B8%E9%A1%B9%E7%9B%AE/%E7%8F%A0%E7%A7%91%E9%99%A2%E6%99%BA%E6%85%A7%E6%B0%B4%E5%88%A9%E9%A1%B9%E7%9B%AE/baise-visualization/node_modules/unplugin-icons/dist/vite.js";
import IconsResolver from "file:///C:/Users/zkxtyanfa/Desktop/%E5%85%AC%E5%8F%B8%E9%A1%B9%E7%9B%AE/%E7%8F%A0%E7%A7%91%E9%99%A2%E6%99%BA%E6%85%A7%E6%B0%B4%E5%88%A9%E9%A1%B9%E7%9B%AE/baise-visualization/node_modules/unplugin-icons/dist/resolver.js";
import { viteMockServe } from "file:///C:/Users/zkxtyanfa/Desktop/%E5%85%AC%E5%8F%B8%E9%A1%B9%E7%9B%AE/%E7%8F%A0%E7%A7%91%E9%99%A2%E6%99%BA%E6%85%A7%E6%B0%B4%E5%88%A9%E9%A1%B9%E7%9B%AE/baise-visualization/node_modules/vite-plugin-mock/dist/index.mjs";
var __vite_injected_original_import_meta_url = "file:///C:/Users/zkxtyanfa/Desktop/%E5%85%AC%E5%8F%B8%E9%A1%B9%E7%9B%AE/%E7%8F%A0%E7%A7%91%E9%99%A2%E6%99%BA%E6%85%A7%E6%B0%B4%E5%88%A9%E9%A1%B9%E7%9B%AE/baise-visualization/vite.config.ts";
var vite_config_default = defineConfig(({ mode }) => {
  const env = loadEnv(mode, process.cwd());
  return {
    base: "./",
    plugins: [
      vue(),
      vueJsx(),
      AutoImport({
        imports: ["vue", "vue-router", "pinia"],
        resolvers: [
          ElementPlusResolver(),
          // 自动导入图标组件
          IconsResolver({
            prefix: "Icon"
          })
        ],
        // 生成自动导入的TS声明文件
        dts: "./auto-imports.d.ts",
        // 解决eslint报错问题
        eslintrc: {
          // 这里先设置成true然后npm run dev 运行之后会生成 .eslintrc-auto-import.json 文件之后，在改为false
          enabled: false,
          filepath: "./.eslintrc-auto-import.json",
          // 生成的文件路径
          globalsPropValue: true
        }
      }),
      Components({
        dirs: ["src/views", "src/layout", "src/components", "src/template"],
        resolvers: [
          ElementPlusResolver(),
          IconsResolver({
            enabledCollections: ["ep"]
            // 重点
          })
        ]
      }),
      Icons({
        autoInstall: true
      }),
      // 配置mock
      viteMockServe({
        mockPath: "./public/mock",
        watchFiles: true
      })
    ],
    resolve: {
      alias: {
        "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
      }
    },
    css: {
      preprocessorOptions: {
        scss: {
          additionalData: '@import "@/styles/variables.scss";'
        }
      }
    },
    server: {
      open: true,
      // 是否自动打开浏览器
      host: "0.0.0.0",
      port: 8666,
      // 端口号
      proxy: {
        "/admin": {
          target: "http://www.ab.com",
          changeOrigin: true
          // 
          // rewrite: path => path.replace(/^/fourEarly/, 'yuyan/'), // 
        }
      }
    }
  };
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFx6a3h0eWFuZmFcXFxcRGVza3RvcFxcXFxcdTUxNkNcdTUzRjhcdTk4NzlcdTc2RUVcXFxcXHU3M0UwXHU3OUQxXHU5NjYyXHU2NjdBXHU2MTY3XHU2QzM0XHU1MjI5XHU5ODc5XHU3NkVFXFxcXGJhaXNlLXZpc3VhbGl6YXRpb25cIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIkM6XFxcXFVzZXJzXFxcXHpreHR5YW5mYVxcXFxEZXNrdG9wXFxcXFx1NTE2Q1x1NTNGOFx1OTg3OVx1NzZFRVxcXFxcdTczRTBcdTc5RDF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